﻿import interpreter.Token;class interpreter.SimplestToken extends Token {	public var _mystring:String;		public function SimplestToken() {	}	public function parse(str:String) {		_str = str;		trace("-------SIMPLESTTOKEN");		_firstchar = getFirstChar();		while (whitespace.indexOf(_firstchar) > -1) {			//if there's a leading space, chomp it			_firstchar = chomp();		}		_mystring = "";		pullOneCharAtATime();		//_mystring += getFirstChar();//		chomp();		trace("In SimplestToken, mystring is "+_mystring+" and I'm returning "+_str);				return _str;	}	public function toString() {		return _mystring;	}	public function pullOneCharAtATime()	{		trace("in pullOneCharAtATime(), getFirstChar() = " + getFirstChar());		_mystring += chomp();//		return;		while((closingTokens.indexOf(getFirstChar()) == -1) && (_str.length>0)) {			trace("pullOneCharAtATime(), and getFirstChar() = " + getFirstChar());			_mystring += chomp();//			pullOneCharAtATime();		}	}}